package com.jy.appmarket.network.engine;

import java.util.Map;

import android.content.Context;

import com.jy.app.market.idata.data.OtherLogin;
import com.jy.appmarket.network.resultdata.OtherLoginResult;

public class OtherLoginNetEngine extends BaseNetEngine{
	private OtherLogin mOtherLogin;
	
	public OtherLoginNetEngine(OtherLogin otherLogin) {
		mResultData = new OtherLoginResult();
		mOtherLogin = otherLogin;
		mHttpMethod = HTTP_POST;
	}
	
	@Override
	protected String getCommand() {
		return "other_login";
	}

	@Override
	protected void postParams(Context context, Map<String, String> params) {
		params.put("uid", mOtherLogin.getUid());
		params.put("iconUrl", mOtherLogin.getIconUrl());
		params.put("nickName", mOtherLogin.getNickName());
		params.put("sex", mOtherLogin.getSex());
		params.put("type", mOtherLogin.getType());
	}
	
}
